<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ page contentType="text/html; charset=utf-8" %>
<html>
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta name="layout" content="main">
    <g:set var="entityName" value="${message(code: 'department.label', default: 'Department')}"/>
    <title><g:message code="default.list.label" args="[entityName]"/></title>
</head>

<body>
<a href="#list-department" class="skip" tabindex="-1">
    <g:message code="default.link.skip.label" default="Skip to content&hellip;"/></a>

<div class="nav" role="navigation">
    <ul>
        <li><a class="home" href="${createLink(uri: '/')}"><g:message code="default.list.label" args="[entityName]"/></a></li>
        <li><g:link class="create" action="create"><g:message code="default.new.label"
                                                              args="[entityName]"/></g:link></li>
    </ul>
</div>

<div id="list-customization" class="content scaffold-list" role="main">
    <h1><g:message code="default.list.label" args="[entityName]"/></h1>
    <g:if test="${flash.message}">
        <div class="message" role="status">${flash.message}</div>
    </g:if>
    <table>
        <thead>
        <tr>

            <g:sortableColumn property="customizeName"
                              title="${message(code: 'customization.customizeName.label', default: 'Customize Name')}"/>

            <g:sortableColumn property="customizeValue"
                              title="${message(code: 'customization.customizeValue.label', default: 'Customize Value')}"/>

            <g:sortableColumn property="customizeType"
                              title="${message(code: 'customization.customizeType.label', default: 'Customize Type')}"/>

            <g:sortableColumn property="contentType"
                              title="${message(code: 'customization.contentType.label', default: 'Content Type')}"/>

            <g:sortableColumn property="comment"
                              title="${message(code: 'customization.comment.label', default: 'Comment')}"/>

            <g:sortableColumn property="createUser"
                              title="${message(code: 'customization.createUser.label', default: 'Create User')}"/>

        </tr>
        </thead>
        <tbody>
        <g:each in="${customizationInstanceList}" status="i" var="customizationInstance">
            <tr class="${(i % 2) == 0 ? 'even' : 'odd'}">

                <td><g:link action="show"
                            id="${customizationInstance.id}">${fieldValue(bean: customizationInstance, field: "customizeName")}</g:link></td>

                <td>${fieldValue(bean: customizationInstance, field: "customizeValue")}</td>

                <td>${fieldValue(bean: customizationInstance, field: "customizeType")}</td>

                <td>${fieldValue(bean: customizationInstance, field: "contentType")}</td>

                <td>${fieldValue(bean: customizationInstance, field: "comment")}</td>

                <td>${fieldValue(bean: customizationInstance, field: "createUser")}</td>

            </tr>
        </g:each>
        </tbody>
    </table>

    <div class="pagination">
        <g:paginate total="${customizationInstanceTotal}"/>
    </div>
</div>
</body>
</html>
